﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="../css/Login.css" rel="stylesheet" type="text/css" />
<link href="../css/linkStyle.css" rel="stylesheet" type="text/css" />
<link href="../Scripts/plugins/jquery.alerts/jquery.alerts.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/jquery-min-lastest.js" type="text/javascript"></script>
<script src="../Scripts/plugins/jquery.alerts/jquery.alerts.js" type="text/javascript"></script>
<script src="../Scripts/jquery-ui-all-min-lastest.js" type="text/javascript"></script>
<script type="text/javascript" src="../Scripts/aboutverifycode.js"></script>
<script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script> 
<% if (false)
    {%><script src="../Scripts/jquery-vsdoc-lastest.js" type="text/javascript"></script>
 <% }%>
 
 <script type="text/javascript">
        //验证用户输入
    $(function(){
          var regNum = /[\d+]/ig;
          var regMobileNO = /^(((13[0-9]{1})|18[0-9]{1}|(15[0-9]{1}))+\d{8})$/;
          //登陆时验证用户输入的信息
          $("input[id=ImgBtn_Login]").bind("click",function(){
                var $mobileNO = $("input[id*=Txt_UserMobile]").val();
                var $pwd = $("input[id*=Txt_Pwd]").val();
                var $validateCode = $("input[id*=Txt_validateCode]").val();

                //验证手机号
                  if (!regMobileNO.test($mobileNO) || $mobileNO =="") {
                        jAlert("手机号码不能为空且必须为11位数字","提示");
                        $("input[id*=Txt_UserMobile]").val("");
                        return false;
                  }
                  
                  if($pwd == ""){
                        jAlert("密码不能为空","提示");
                        return false;
                  }  
                      
                  if($validateCode == ""){
                        jAlert("验证码不能为空","提示");
                        return false;
                  }  
                  return true;
          });
    
    });
 
 </script>
        
    <title>立言咨询平台-用户登录</title>
    <style type="text/css">
        .style1
        {
            width: 393px;
            height: 50px;
        }
        .style2
        {
            width:19px;
        }
        .style4
        {
            width:108px;
            text-align:left;
        }
        .style5
        {
            width: 100%;
            height: 45px;
			text-align:center;
        }
        .style6
        {
            width: 83px;
            height: 46px;
        }
        .style7
        {
            height: 46px;
        }
        .style11
        {
            height: 24px;
            width: 132px;
            text-align:center;
        }
        .style12
        {
            width: 100%;
            height: 42px;
        }
        .style16
        {
            width: 100%;
            height: 36px;
        }
        .style17
        {
            width: 13px;
        }
        .style18
        {
            height: 24px;
            width: 109px;
            text-align: center;
        }
        .style21
        {
            width: 18px;
        }
        .style23
        {
            width: 101px;
            text-align: left;
        }
        .style24
        {
            width: 94px;
            text-align: left;
        }
        .style25
        {
            width: 309px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="big">
            <div id="head">
                <table class="style12">
                    <tr>
                        <td style="width:198px;">&nbsp;
                            </td>
                        <td style="width:198px;">&nbsp;
                            </td>
                        <td style="width:198px;">&nbsp;
                            </td>
                        <td style="width:198px;">&nbsp;
                            </td>
                        <td style="width:198px; font-size:12px; color:White;">
                            <a href="../Default.aspx" style=" font-size:12px; color:White;">返回首页</a></td>
                    </tr>
                </table>
            </div>
            <div id="main" >
                 <div id="m1" style="background-repeat:no-repeat;">
                       <div style="height:85px;"></div>
                       <table class="style1">
                           <tr>
                               <td class="style2">&nbsp;
                                   </td>
                               <td class="style23" 
                                   style="text-align:left; font-size:13px; font-weight:bold; color:#121D27;">
                                   注册用户名：</td>
                               <td class="style4">
                                   <asp:TextBox ID="Txt_UserMobile" runat="server" Height="20px" Width="150px" 
                                       BorderColor="#121D27" BorderWidth="1px"></asp:TextBox>
                               </td>
                               <td style="width:49px;">&nbsp;
                                   </td>
                           </tr>
                         </table>
                           <table class="style1">
                           <tr>
                               <td class="style2">&nbsp;
                                   </td>
                               <td class="style23" 
                                   style="text-align:left; font-size:13px; font-weight:bold; color:#121D27;">
                                   注册用户密码：</td>
                               <td class="style4">
                                   <asp:TextBox ID="Txt_Pwd" runat="server" Height="20px" Width="150px"  BorderColor="#121D27" BorderWidth="1px" TextMode="Password"></asp:TextBox></td>
                               <td style="width:49px;">&nbsp;
                                   </td>
                           </tr>
                           </table>
                         <table class="style1">
                           <tr>
                               <td class="style21">&nbsp;
                                   </td>
                               <td class="style24" 
                                   style="text-align:left; font-size:13px; font-weight:bold; color:#121D27;">
                                   验证码：</td>
                               <td class="style4">
                                   <asp:TextBox ID="Txt_validateCode" runat="server" Height="20px" Width="120px" 
                                       BorderColor="#121D27" BorderWidth="1px"></asp:TextBox>
                               </td>
                               <td style="width:49px;">
                                 <img id="yzm" alt="换一张" height="30" src="../CreateCode.aspx" onclick="document.getElementById(this.id).src='../CreateCode.aspx?id='+Math.random()" width="65" /> </td>
                           </tr>
                         </table>
                         
                       <table class="style16">
                           <tr>
                               <td class="style17">&nbsp;
                                   </td>
                               <td style="text-align:left;">
                                   <asp:RadioButtonList ID="RBL_UserType" runat="server" Font-Bold="True" 
                                       Font-Size="13px" RepeatDirection="Horizontal" Width="200px">
                                        <asp:ListItem Value="2">企业用户</asp:ListItem>
                                        <asp:ListItem Value="1" Selected="True">个人用户</asp:ListItem>
                                   </asp:RadioButtonList>
                               </td>
                           </tr>
                       </table>
                         
                       <table class="style5">
                           <tr>
                               <td class="style6">
                               </td>
                               <td class="style7" style="text-align:left;">
                                   <asp:ImageButton ID="ImgBtn_Login" runat="server" 
                                       ImageUrl="~/Images/LoginImg/denglu.gif" onclick="ImgBtn_Login_Click" />
                               </td>
                           </tr>
                       </table>
                       
                       <div style="height:25px; text-align:left;">
                           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                           <asp:Label ID="Lbl_ErrorInfo" runat="server" Font-Bold="True" ForeColor="#FF3300" 
                               Text=""></asp:Label>
                       </div>
                       <table class="style5">
                    <tr>
                        <td class="style11" >
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a  href="../CardCenter/OnlinePurchaseCardStep1.aspx" style="font-size:13px; font-weight:bold;" class="lylink">在线购卡</a></td>
                        <td class="style18">
                            &nbsp;<a href="../ForgetPwd/ForgetNav.aspx"style="font-size:13px; font-weight:bold;" class="lylink">忘记密码?</a></td>
                    </tr>
                </table>
                 </div>
            </div>
            <div id="foot">
            <div id="f1">
                <table width="970" class="style5">
                    <tr>
                        <td width="203" style="font-size:12px; color:#121D27;">
                            <a href="../MyLy/MylyPhone.aspx" class="style5">电话咨询服务</a></td>
                        <td width="235" style="font-size:12px; color:#121D27;">
                            <a href="../MyLy/FileReview.aspx"class="lylink">文件审核、起草功能</a></td>
                        <td width="240" style="font-size:12px; color:#121D27;">
                            <a href="../MyLy/MylyAppointment.aspx"class="lylink">现场预约</a></td>
						<td width="272" style="font-size:12px; color:#121D27;">
                            <a href="../MyLy/MylyQuick.aspx"class="lylink">会员速递</a></td>
              
                    </tr>
              </table>
              </div>
            </div>
            
    </div>
    </form>
</body>
</html>
